import matplotlib.pyplot as plt

cpu_models = ['Atomic', 'Trace', 'Timing']
mips = [500, 200, 50]  # 替换为实际数据
misses = [0, 0, 12345] 

fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(10, 4))
ax1.bar(cpu_models, mips, color='blue')
ax1.set_title('MIPS Comparison')
ax1.set_ylabel('MIPS')

ax2.bar(cpu_models, misses, color='red')
ax2.set_title('DCache Misses')
plt.show()
